<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/Imladris.Entities" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/Imladris.Entities" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="ArrayOfDocumentDTO">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="DocumentDTO" nillable="true" type="tns:DocumentDTO" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfDocumentDTO" nillable="true" type="tns:ArrayOfDocumentDTO" />
  <xs:complexType name="DocumentDTO">
    <xs:sequence>
      <xs:element minOccurs="0" name="Additional1ID" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Additional2ID" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Additional3ID" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Additional4ID" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Classification" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Comment" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedOn" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DocumentCategoryID" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="DocumentChanges" nillable="true" type="tns:ArrayOfDocumentChangeDTO" />
      <xs:element minOccurs="0" name="DocumentID" type="xs:int" />
      <xs:element minOccurs="0" name="DocumentPersons" nillable="true" type="tns:ArrayOfDocumentPersonDTO" />
      <xs:element minOccurs="0" name="DocumentRights" nillable="true" type="tns:ArrayOfDocumentRightDTO" />
      <xs:element minOccurs="0" name="DocumentState" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DocumentTypeID" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="DocumentVersions" nillable="true" type="tns:ArrayOfDocumentVersionDTO" />
      <xs:element minOccurs="0" name="EmpoyeeID" type="xs:int" />
      <xs:element minOccurs="0" name="ModifiedOn" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="DocumentDTO" nillable="true" type="tns:DocumentDTO" />
  <xs:complexType name="ArrayOfDocumentChangeDTO">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="DocumentChangeDTO" nillable="true" type="tns:DocumentChangeDTO" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfDocumentChangeDTO" nillable="true" type="tns:ArrayOfDocumentChangeDTO" />
  <xs:complexType name="DocumentChangeDTO">
    <xs:sequence>
      <xs:element minOccurs="0" name="ChangeDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Classification" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Comment" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Document" nillable="true" type="tns:DocumentDTO" />
      <xs:element minOccurs="0" name="DocumentChangeID" type="xs:int" />
      <xs:element minOccurs="0" name="DocumentID" type="xs:int" />
      <xs:element minOccurs="0" name="DocumentState" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="EmployeID" nillable="true" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="DocumentChangeDTO" nillable="true" type="tns:DocumentChangeDTO" />
  <xs:complexType name="ArrayOfDocumentPersonDTO">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="DocumentPersonDTO" nillable="true" type="tns:DocumentPersonDTO" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfDocumentPersonDTO" nillable="true" type="tns:ArrayOfDocumentPersonDTO" />
  <xs:complexType name="DocumentPersonDTO">
    <xs:sequence>
      <xs:element minOccurs="0" name="Document" nillable="true" type="tns:DocumentDTO" />
      <xs:element minOccurs="0" name="DocumentID" type="xs:int" />
      <xs:element minOccurs="0" name="DocumentPersonID" type="xs:int" />
      <xs:element minOccurs="0" name="PersonID" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="DocumentPersonDTO" nillable="true" type="tns:DocumentPersonDTO" />
  <xs:complexType name="ArrayOfDocumentRightDTO">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="DocumentRightDTO" nillable="true" type="tns:DocumentRightDTO" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfDocumentRightDTO" nillable="true" type="tns:ArrayOfDocumentRightDTO" />
  <xs:complexType name="DocumentRightDTO">
    <xs:sequence>
      <xs:element minOccurs="0" name="Document" nillable="true" type="tns:DocumentDTO" />
      <xs:element minOccurs="0" name="DocumentID" type="xs:int" />
      <xs:element minOccurs="0" name="DoumentRightID" type="xs:int" />
      <xs:element minOccurs="0" name="FullControlYN" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="GroupName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ReadYN" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="WriteYN" nillable="true" type="xs:boolean" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="DocumentRightDTO" nillable="true" type="tns:DocumentRightDTO" />
  <xs:complexType name="ArrayOfDocumentVersionDTO">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="DocumentVersionDTO" nillable="true" type="tns:DocumentVersionDTO" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfDocumentVersionDTO" nillable="true" type="tns:ArrayOfDocumentVersionDTO" />
  <xs:complexType name="DocumentVersionDTO">
    <xs:sequence>
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Document" nillable="true" type="tns:DocumentDTO" />
      <xs:element minOccurs="0" name="DocumentID" type="xs:int" />
      <xs:element minOccurs="0" name="DocumentVersionID" type="xs:int" />
      <xs:element minOccurs="0" name="FileType" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="VersionNum" nillable="true" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="DocumentVersionDTO" nillable="true" type="tns:DocumentVersionDTO" />
</xs:schema>